cmake $<C_COMPILER_ID> examples

godlikepanos/anki-3d-engine ThirdParty/Sdl3/CMakeLists.txt :19

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

bambulab/BambuStudio CMakeLists.txt :334

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

libsigcplusplus/libsigcplusplus CMakeLists.txt :45

add_compile_options(
    "$<$<OR:$<CXX_COMPILER_ID:MSVC>,$<C_COMPILER_ID:MSVC>>:/W4;/WX>"
    "$<$<OR:$<CXX_COMPILER_ID:GNU>,$<C_COMPILER_ID:GNU>>:-pedantic;-Wall;-Wextra;-Wsuggest-override;-Wshadow;-Wzero-as-null-pointer-constant;-Wformat-security>"
    "$<$<OR:$<CXX_COMPILER_ID:Clang>,$<C_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:AppleClang>>:-pedantic;-Wall;-Wextra;-Wshadow;-Wzero-as-null-pointer-constant;-Wformat-security>"
)

ezEngine/ezEngine Code/ThirdParty/glfw/src/CMakeLists.txt :116

target_compile_options(glfw PRIVATE
                           "$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
                           "$<$<C_COMPILER_ID:Clang>:-std=c99>"
                           "$<$<C_COMPILER_ID:GNU>:-std=c99>")

chdb-io/chdb contrib/qpl-cmake/CMakeLists.txt :685

target_compile_options(qpl_c_api
    PRIVATE $<$<C_COMPILER_ID:GNU,Clang>:$<$<CONFIG:Release>:-O3;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2>>
    PRIVATE $<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:${QPL_LINUX_TOOLCHAIN_CPP_EMBEDDED_FLAGS}>)

in-formant/in-formant external/filesystem-compat/CMakeLists.txt :34

target_compile_options(ghc_filesystem INTERFACE "$<$<C_COMPILER_ID:MSVC>:/utf-8>")

univrsal/input-overlay cmake/linux/compilerconfig.cmake :58

add_compile_options($<$<C_COMPILER_ID:Clang>:-fcolor-diagnostics> $<$<CXX_COMPILER_ID:Clang>:-fcolor-diagnostics>)

brainflow-dev/brainflow CMakeLists.txt :35

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

cyanray/mirai-cpp examples/CMakeLists.txt :5

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

vseasky/VersaAssistant QtAdvancedDocking/CMakeLists.txt :28

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

abeimler/ecs_benchmark src/entityx/CMakeLists.txt :18

target_compile_options(entityx PUBLIC $<$<C_COMPILER_ID:Clang,GNU>:-Wno-deprecated-declarations -Wno-ambiguous-reversed-operator>)

Dreamtowards/Ethertia lib/glfw-3.3.8/tests/CMakeLists.txt :29

add_compile_options("$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
                        "$<$<C_COMPILER_ID:Clang>:-std=c99>"
                        "$<$<C_COMPILER_ID:GNU>:-std=c99>")

InsightSoftwareConsortium/ITK CMake/ITKModuleHeaderTest.cmake :129

target_link_options(
        ${_test_name}
        PRIVATE
          "$<$<AND:$<C_COMPILER_ID:AppleClang>,$<VERSION_GREATER_EQUAL:$<C_COMPILER_VERSION>,15.0>>:LINKER:-no_warn_duplicate_libraries>"
      )

Aitum/obs-vertical-canvas CMakeLists.txt :40

target_compile_options(
${PROJECT_NAME} PRIVATE $<$<C_COMPILER_ID:Clang,AppleClang>:-Wno-quoted-include-in-framework-header
                                -Wno-comma>)

ClickHouse/ClickHouse contrib/qpl-cmake/CMakeLists.txt :685

target_compile_options(qpl_c_api
    PRIVATE $<$<C_COMPILER_ID:GNU,Clang>:$<$<CONFIG:Release>:-O3;-U_FORTIFY_SOURCE;-D_FORTIFY_SOURCE=2>>
    PRIVATE $<$<COMPILE_LANG_AND_ID:CXX,GNU,Clang>:${QPL_LINUX_TOOLCHAIN_CPP_EMBEDDED_FLAGS}>)

pingcap/tiflash contrib/qpl-cmake/CMakeLists.txt :187

set_target_properties(qplcore_px PROPERTIES
         $<$<C_COMPILER_ID:GNU>:C_STANDARD 17>)

topling/toplingdb CMakeLists.txt :52

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

hanickadot/compile-time-regular-expressions tests/CMakeLists.txt :11

target_compile_options(ctre-test-${test} PUBLIC "$<$<C_COMPILER_ID:MSVC>:/utf-8>")

neka-nat/cupoch third_party/GLFW/src/CMakeLists.txt :118

target_compile_options(glfw PRIVATE
                       "$<$<C_COMPILER_ID:Clang>:-Wall>"
                       "$<$<C_COMPILER_ID:GNU>:-Wall>")

KangLin/RabbitRemoteControl CMakeLists.txt :38

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

cvet/fonline ThirdParty/mongo-c-driver/src/CMakeLists.txt :32

target_compile_options(public-header-warnings PRIVATE
  $<$<C_COMPILER_ID:AppleClang,Clang>:-Weverything>
  $<$<C_COMPILER_ID:GNU>:-Wextra>
  $<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Werror>
  $<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-declaration-after-statement>
  $<$<C_COMPILER_ID:AppleClang,Clang,GNU>:-Wno-disabled-macro-expansion>
  $<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-c++98-compat-pedantic>
  $<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-pre-c2x-compat>
  $<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-unsafe-buffer-usage>
  $<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-padded>
  $<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-reserved-identifier>
  $<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-documentation-unknown-command>
  $<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-unknown-warning-option>
  $<$<C_COMPILER_ID:MSVC>:/W4>
  $<$<C_COMPILER_ID:MSVC>:/WX>
  $<$<C_COMPILER_ID:MSVC>:/wd4324>
)

lighttransport/tinyusdz examples/common/glfw-3.3.6/src/CMakeLists.txt :105

target_compile_options(glfw PRIVATE
                           "$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
                           "$<$<C_COMPILER_ID:Clang>:-std=c99>"
                           "$<$<C_COMPILER_ID:GNU>:-std=c99>")

axmolengine/axmol axmol/CMakeLists.txt :47

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

k2-fsa/sherpa-ncnn CMakeLists.txt :181

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

TeXworks/texworks CMakeLists.txt :84

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

openc2e/openc2e externals/ghc_filesystem/CMakeLists.txt :40

target_compile_options(ghc_filesystem INTERFACE "$<$<C_COMPILER_ID:MSVC>:/utf-8>")

meemknight/ourCraft thirdparty/glfw-3.3.2/examples/CMakeLists.txt :25

add_compile_options("$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
                        "$<$<C_COMPILER_ID:Clang>:-std=c99>"
                        "$<$<C_COMPILER_ID:GNU>:-std=c99>")

ufz/ogs GeoLib/CMakeLists.txt :15

set_source_files_properties(
    predicates.c
    PROPERTIES
        COMPILE_OPTIONS
        "$<$<C_COMPILER_ID:Clang,AppleClang,GNU>:-w>$<$<C_COMPILER_ID:MSVC>:/W0>"
        SKIP_UNITY_BUILD_INCLUSION TRUE
)

Off-World-Live/obs-spout2-plugin CMakeLists.txt :30

target_compile_options(
    ${CMAKE_PROJECT_NAME}
    PRIVATE $<$<C_COMPILER_ID:Clang,AppleClang>:-Wno-quoted-include-in-framework-header -Wno-comma>
  )

glKarin/com.n0n3m4.diii4a Q3E/src/main/jni/xash3d/xash3d-fwgs/3rdparty/opusfile/opusfile/CMakeLists.txt :50

target_compile_options(fwgs_opusfile
  PRIVATE
    $<$<C_COMPILER_ID:MSVC>:/wd4267>
    $<$<C_COMPILER_ID:MSVC>:/wd4244>
    $<$<C_COMPILER_ID:MSVC>:/wd4090>
    $<$<C_COMPILER_ID:Clang,GNU>:-std=c89>
    $<$<C_COMPILER_ID:Clang,GNU>:-pedantic>
    $<$<C_COMPILER_ID:Clang,GNU>:-Wall>
    $<$<C_COMPILER_ID:Clang,GNU>:-Wextra>
    $<$<C_COMPILER_ID:Clang,GNU>:-Wno-parentheses>
    $<$<C_COMPILER_ID:Clang,GNU>:-Wno-long-long>
    $<$<C_COMPILER_ID:Clang,GNU>:-fvisibility=hidden>
)

tek256/astera CMakeLists.txt :135

target_link_options(${PROJECT_NAME}
    PUBLIC
    $<$<C_COMPILER_ID:MSVC>:/fsanitize=address>
    $<$<NOT:$<C_COMPILER_ID:MSVC>>:-g -fsanitize=address>)

TheComet/ik ik/CMakeLists.txt :319

target_compile_options (ik_python_obj
        PUBLIC $<$<C_COMPILER_ID:MSVC>:
            /EHa /MTd /W4 /WX /wd4115 /wd4201 /wd4100 /D_CRT_SECURE_NO_DEPRECATE
        >
        PUBLIC $<$<C_COMPILER_ID:GNU>:
            -Wall -Wextra -Werror -pedantic -pedantic-errors -Wno-missing-field-initializers -Wshadow
            $<$<BOOL:IK_PROFILING>:-pg -fno-omit-frame-pointer>
        >
        PUBLIC $<$<C_COMPILER_ID:Clang>:
            -Wall -Wextra -Werror -pedantic -pedantic-errors -Wno-missing-field-initializers -Wshadow
            $<$<BOOL:IK_PROFILING>:-pg -fno-omit-frame-pointer>
        >
    )

nvpro-samples/optix_advanced_samples src/support/glfw/src/CMakeLists.txt :80

target_compile_options(glfw PRIVATE
                       "$<$<C_COMPILER_ID:Clang>:-Wall>"
                       "$<$<C_COMPILER_ID:GNU>:-Wall>")

FreeRDP/FreeRDP cmake/CompilerFlags.cmake :45

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

afni/afni cmake/get_build_macros_and_functions.cmake :249

target_link_options(${target_in}
  PRIVATE
  $<$<C_COMPILER_ID:AppleClang>:LINKER:-undefined,error>
  $<$<C_COMPILER_ID:Clang>:LINKER:-undefined,error>
  $<$<C_COMPILER_ID:GNU>:LINKER:--as-needed>
  $<$<C_COMPILER_ID:GNU>:LINKER:--no-undefined>
  )

Sneeds-Feed-and-Seed/sneedacity cmake-proxies/libsoxr/CMakeLists.txt :40

list( APPEND OPTIONS
   PRIVATE
      $<$<C_COMPILER_ID:AppleClang,Clang,GNU>:
         -Wconversion
         -Wall
         -Wextra
         -pedantic
         -Wundef
         -Wpointer-arith
         -Wno-long-long
         -Wnested-externs
         -Wmissing-prototypes
         -Wstrict-prototypes
      >
      $<$<C_COMPILER_ID:AppleClang,Clang>:-Wno-keyword-macro>
)

MiKTeX/miktex cmake/modules/IgnoreWarnings.cmake :10

target_compile_options(${target}
        PRIVATE
            $<$<OR:$<C_COMPILER_ID:Clang>,$<C_COMPILER_ID:AppleClang>,$<C_COMPILER_ID:GNU>>:-w>
            $<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>,$<CXX_COMPILER_ID:GNU>>:-w>
            $<$<C_COMPILER_ID:MSVC>:/w>
            $<$<CXX_COMPILER_ID:MSVC>:/w>
    )

USEPA/Stormwater-Management-Model src/solver/CMakeLists.txt :56

target_compile_options(swmm5
    PUBLIC
        $<$<C_COMPILER_ID:MSVC>:
            $<$<CONFIG:Release>:/GL>
            $<$<CONFIG:Release>:/fp:fast>
            $<$<CONFIG:Release>:/Zi>
        >
)

intel/qpl sources/core-iaa/CMakeLists.txt :33

set_target_properties(core_iaa PROPERTIES
        $<$<C_COMPILER_ID:MSVC>:C_STANDARD 18>
        $<$<C_COMPILER_ID:GNU,Clang>:C_STANDARD 17>
        C_VISIBILITY_PRESET hidden)

siggraphcontact/rigidBodyTutorial 3rdParty/polyscope/deps/glfw/examples/CMakeLists.txt :26

add_compile_options("$<$<C_COMPILER_ID:AppleClang>:-std=c99>"
                        "$<$<C_COMPILER_ID:Clang>:-std=c99>"
                        "$<$<C_COMPILER_ID:GNU>:-std=c99>")

NapNeko/NTQQAntiRecall main/CMakeLists.txt :12

add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>")

HDFGroup/hdf5 config/HDFMacros.cmake :305

target_compile_options(${wintarget} PRIVATE
      "$<$<C_COMPILER_ID:MSVC>:${WIN_COMPILE_FLAGS}>"
      "$<$<CXX_COMPILER_ID:MSVC>:${WIN_COMPILE_FLAGS}>"
  )

libcsp/libcsp CMakeLists.txt :117

target_compile_options(csp_common INTERFACE
    -Wall
    -Wcast-align
    -Werror
    -Wextra
    -Wmissing-prototypes
    -Wpedantic
    -Wpointer-arith
    -Wshadow
    -Wwrite-strings
    $<$<C_COMPILER_ID:Clang>:-Wno-gnu-zero-variadic-macro-arguments>)

fossasia/pslab-mini-firmware cmake/stm32/common.cmake :351

target_compile_options(STM32::NoSys INTERFACE $<$<C_COMPILER_ID:GNU>:--specs=nosys.specs>)